Automattic\Jetpack\Search\Classic_Search D

Total Complexity 241
Dependencies 9
Dependents 4
Total lines 1,878
Lines of code 1,008
Logical lines of code 481
Comment lines 601
Methods 43
Properties 9

Methods 43

Method Rating Maintainability Complexity Lines of code
get_filters()
D
23
48 171
convert_wp_es_to_es_args()
D
20
35 291
search()
A
39 14 64
do_search()
A
42 14 51
move_search_widgets_to_inactive()
A
51 10 27
get_es_wp_query_terms_for_query()
A
53 10 22
get_active_filter_buckets()
A
57 8 17
get_es_wp_query_post_type_for_query()
S
51 7 28
add_aggregations_to_es_query_builder()
S
56 6 18
filter__posts_pre_query()
S
49 5 30
maybe_add_post_type_as_var()
S
62 6 10
get_search_result()
S
69 6 6
fix_aggregation_ordering()
S
62 5 12
filter__add_date_filter_to_query()
S
52 4 25
add_date_histogram_aggregation_to_es_query_builder()
S
57 4 17
and_es_filters()
S
60 4 13
add_taxonomy_aggregation_to_es_query_builder()
S
54 3 23
print_query_success()
S
60 3 15
track_widget_updates()
S
59 3 15
_apply_boosts_multiplier()
S
60 3 14
update_search_results_aggregations()
S
62 3 11
instance()
S
64 3 10
set_filters_from_widgets()
S
66 3 9
get_taxonomy_query_var()
S
68 3 7
get_search_aggregations_results()
S
67 3 8
set_filters()
S
66 3 8
init_hooks()
S
59 2 13
_get_caret_boosted_fields()
S
68 2 7
should_handle_query()
S
78 2 3
setup()
S
70 2 7
has_vip_index()
S
79 2 3
print_query_failure()
S
65 2 10
get_last_query_info()
S
79 2 3
get_last_query_failure_info()
S
79 2 3
add_post_type_aggregation_to_es_query_builder()
S
64 1 11
store_query_failure()
S
75 1 4
store_last_query_info()
S
75 1 4
__wakeup()
S
81 1 3
__clone()
S
81 1 3
initialize()
S
78 1 3
are_filters_by_widget_disabled()
S
81 1 3
action__widgets_init()
S
76 1 4
__construct()
S
91 1 2